mkdir -p /usr/software
tar xf  node-v12.18.3-linux-x64.tar.xz -C /usr/software
cd /usr/software
mv node-v12.18.3-linux-x64 nodejs
ln -s /usr/software/nodejs/bin/npm /usr/local/bin/  
ln -s /usr/software/nodejs/bin/node   /usr/local/bin/
npm -v
node -v
npm install -g cnpm --registry=https://registry.npm.taobao.org
ln -s /usr/software/nodejs/lib/node_modules/cnpm/bin/cnpm /usr/local/bin/cnpm
cnpm -v
